<?php
/**
 * Created by PhpStorm.
 * User: white
 * Date: 2020/5/11
 * Time: 17:50
 */

namespace app\common\validate;

use think\Validate;

class Experience extends Validate
{
    protected $rule = [
        'img|图片' => 'require|image',
        'author|作者' => 'require',
        'title|留学实况简介' => 'require',
        'content|留学实况详情' => 'require'
    ];

    //验证场景
    protected $scene = [
        'edit' => ['title','author','content']
    ];

}